package com.example.backend.dto;

import lombok.Data;

import java.util.Map;

/**
 * 测试结果DTO
 */
@Data
public class TestResultDto {
    private Boolean success;
    private String message;
    private Integer statusCode;
    private String responseBody;
    private Long responseTime; // 毫秒
    private Map<String, String> responseHeaders;
    private String errorDetails;
    
    public TestResultDto() {}
    
    public TestResultDto(Boolean success, String message) {
        this.success = success;
        this.message = message;
    }
    
    public boolean isSuccess() {
        return success != null && success;
    }
}
